{% extends "/shared/layout.html" %}
{% block mainContent %}
{% include '/social/group_edit_partial.html' %}
<div class="wrapper group_main">
  <div class="invite">
    <a id="btnInvite" href="###" class="button {% if not groupInfo.groupId %}disabled{% endif %}">+ {{pageRes.linkInvite}}</a>
  </div>
</div>

<script type="text/javascript">
  $(function() {
    var socialActions = nsbase.config.actionUrl.social;
    var $btnInvite = $("#btnInvite");

    $btnInvite.click(function() {
        var sender = $(this);
        if(sender.hasClass('disabled')){
          return;
        }

        location.href = socialActions.groupMembers+"?groupId="+$("#txtGroupId").val();
      });


  });
</script>
{% endblock %}